# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-icalendar
_pyname=icalendar
pkgver=4.0.9
pkgrel=1
pkgdesc="icalendar parser library for Python"
url="https://github.com/collective/icalendar"
arch="noarch"
license="BSD-2-Clause"
depends="python3 py3-dateutil py3-tz"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-hypothesis"
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="build:$PYTHONPATH" pytest -v "src/$_pyname/tests"
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
2eeb69da89207fe91661dfa6e9c2a623eb3be2fb5a48e999e87a881d7fecc1f339764124601b0610a14ce809f238c6731f30f2071bb4706206de10181365d1dd  icalendar-4.0.9.tar.gz
"
